<?php


namespace api\web\controller;


use api\web\model\NavModel;
use cmf\controller\RestBaseController;


class NavController extends RestBaseController
{
    public function index()
    {
        $res = NavModel::with('nav')
            ->where('parent_id','0')
            ->select();
        $this->success('导航栏列表',$res);
    }
}